package fons.model.ontology.calculation.expression;

import java.util.Map;

import fons.model.ontology.calculation.Variable;


public class Substraction extends BinaryExpression {

	public Substraction(Expression lhs, Expression rhs) {
		super(lhs, rhs);
	}

	@Override
	public double value(Map<String, Variable> variables) throws VariableMissingException {
		return lhs.value(variables) - rhs.value(variables);
	}

}
